/**
 * 小程序配置文件
 */

// 此处主机域名是腾讯云解决方案分配的域名
// 小程序后台服务解决方案：https://www.qcloud.com/solution/la

var host = 'https://smes.njwmx.com/'
//host = 'http://localhost:58969'
host = 'http://58.210.195.230'
var appUrlPrefix = 'http://58.210.195.230:8818/jeeplus/a'

var config = {
  appId: 'wx41a91ccf3d6fa90a',
  // 下面的地址配合云端 Server 工作
  host,
  appUrlPrefix,
  // 登录地址，用于建立会话
  loginUrl: `${appUrlPrefix}/login`,
  bindUrl: `${appUrlPrefix}/sys/register/bindUser`,
  UnBindUrl: `${appUrlPrefix}/logout`,
  getUserUrl: `${appUrlPrefix}/sys/user/infoData`,

  // 测试的请求地址，用于测试会话
  requestUrl: `${host}/testRequest`,
  // 用code换取openId
  openIdUrl: `${appUrlPrefix}/Home/HuoQuOpenId`,
  //工作日志查询
  gzrzQueryUrl: `${appUrlPrefix}/projmylog/projMyLog/interface/myLog`,
  //选择项目
  selectProjUrl: `${appUrlPrefix}/projbaseinfo/projBaseInfo/interface/myProject`,
  //选择用户
  selectUserUrl: `${appUrlPrefix}/sys/user/interface/userList;`,
  //新增日志
  createLogUrl: `${appUrlPrefix}/projmylog/projMyLog/interface/saveLog`,
  //日志删除
  selectProjUrl3: `${appUrlPrefix}/projbaseinfo/projBaseInfo/interface/myProject`,
  //日志明细查询
  viewLogUrl: `${appUrlPrefix}/projmylog/projMyLog/interface/viewLog`,
  //日志审核查询 
  logAuditListUrl: `${appUrlPrefix}/projlogaudit/projLogAudit/interface/logAuditList`,
  //日志审核查看
  selectProjUrl2: `${appUrlPrefix}/projbaseinfo/projBaseInfo/interface/myProject`,
  //日志审核
  auditLogUrl: `${appUrlPrefix}/projlogaudit/projLogAudit /interface/auditLog`,
  // 测试的信道服务接口
  tunnelUrl: `${appUrlPrefix}/tunnel`,
  // 生成支付订单的接口
  paymentUrl: `${appUrlPrefix}/payment`,
  // 发送模板消息接口
  templateMessageUrl: `${appUrlPrefix}/templateMessage`,
  // 上传文件接口
  uploadFileUrl: `${appUrlPrefix}/upload`,
  // 下载示例图片接口
  downloadExampleUrl: `${appUrlPrefix}/static/weapp.jpg`,
  // 更新小程序用户接口
  gengXinXiaoChengXuYongHuUrl: `${appUrlPrefix}/Home/UpdateMiniUser`,

}

module.exports = config